<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>用户订单后台显示</title>
  <link rel="stylesheet" type="text/css" href="http://localhost/Gshop/Gshop/Gshop/Member/Tpl/Public/css/index.css">
</head>
<body>
    <div class="title-header">用户订单详情</div>
    <table class="table1">
      <thead>
          <tr>
            <td>UID</td>
            <td>订单号</td>
            <td>收货人</td>
            <td>地址</td>
            <td>电话</td>
            <td>时间</td>
            <td>状态</td>
          </tr>
      </thead>
      <?php $hd["list"]["order"]["total"]=0;if(isset($orderData) && !empty($orderData)):$_id_order=0;$_index_order=0;$lastorder=min(1000,count($orderData));
$hd["list"]["order"]["first"]=true;
$hd["list"]["order"]["last"]=false;
$_total_order=ceil($lastorder/1);$hd["list"]["order"]["total"]=$_total_order;
$_data_order = array_slice($orderData,0,$lastorder);
if(count($_data_order)==0):echo "";
else:
foreach($_data_order as $key=>$order):
if(($_id_order)%1==0):$_id_order++;else:$_id_order++;continue;endif;
$hd["list"]["order"]["index"]=++$_index_order;
if($_index_order>=$_total_order):$hd["list"]["order"]["last"]=true;endif;?>

            <tr>
            <td><?php echo $order['uid'];?></td>
            <td><?php echo $order['order_num'];?></td>
            <td><?php echo $order['name'];?></td>
            <td><?php echo $order['address'];?></td>
            <td><?php echo $order['tel'];?></td>
            <td><?php echo hd_date($order['ordertime'],'Y-m-d h:i:s');?></td>
              <?php if($order['state'] == 0){?>
                  <td>未付款</td>
                  <?php  }elseif($order['state'] == 1){ ?>
                    <td style="color:red;font-weight:700;">已付款</td>
                    <?php  }else{ ?>
                      <td>派发中</td>
              <?php }?>
            </tr>
          <?php $hd["list"]["order"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
    </table>
</body>
</html>










